package vn.gq.tym.storytemplate;

import android.content.Context;
import android.webkit.JavascriptInterface;
import android.widget.Toast;

public class WebAppInterface {
	
	Context context;
	
	public WebAppInterface(Context ctx) {
		context = ctx;
	}
	
	@JavascriptInterface
	public void showToast(String toast) {
		Toast.makeText(context, toast, Toast.LENGTH_SHORT).show();
	}
}
